home *** CD-ROM | disk | FTP | other *** search
- Subject: Re(2): FW_CODPart::WritePartInfo
- Sent: 7/15/96 3:26 PM
- Received: 7/15/96 3:43 PM
- From: David McCusker, david_mccusker@powertalk.apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Brad Hutchings (brad@hutchings-software.com) writes:
- > > Have you tried to use FW_CFrame::Internalize/ExternalizeFrame? You
- > > should not have to use FW_CODPart::WritePartInfo directly.
- >
- > Yes, but I get an ODStorageUnitView to work with in there. Deleting from
- > the value seems to have no effect. Then again, neither did removing it in
- > FWCODPart::WritePartInfo. I'm beginning to think that OpenDoc isn't very
- > aggressive about compacting files. I'll ask David McCusker on
- > OD-Interest....
-
- With regard to compacting files, OpenDoc depends on the container suite
- being used, which currently is the Bento container suite. Bento was
- originally a log format in which nothing was ever really deleted. Ed Lai
- did an excellent job shortly before OpenDoc 1.0 of implementing garbage
- collection for unreachable draft entities in Bento files, and this is the
- only source of space that is re-used under Bento.
-
- (I've been making comprehensive performance optimizations in a new version
- of Bento which, among other things, deals with free space more efficiently.
- But these optimizations will appear in a big bang at a later date, rather
- than trickling into the current Bento over time.)
-
- When you say "delete" I wonder whether you are destroying the entire value
- or merely excising a portion. If the latter, I'll have to ask Ed whether
- his garbage collection works on unreachable _pieces_ of values.
-
- When you say "has no effect", do you mean only that the data is still in
- the file, or that subsequent calls to the Storage API demonstrates that
- the data is still accessible through the interface?
-
- David McCusker, OpenDoc Storage & Bento, david_mccusker@powertalk.apple.com
-
-
-